<?php

namespace app\cash\model;

use app\common\model\CommonModel;


class CashThirdsettleModel extends CommonModel{

    protected  $name = 'beautiful_cash_third_settle';

    protected  $pk   = 'cash_third_settle_id';
    /**
     * 模型写入前事件（钩子函数）
     */
    public static function onBeforeInsert($model)
    {
        $model->set("add_time", date('Y-m-d H:i:s'));
        $model->set("add_ip", request()->ip());
    }

}

